package com.lawfinal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author KBr
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证号")
    private String card;

    @ApiModelProperty(value = "手机号 ")
    private String phone;

    @ApiModelProperty(value = "住址")
    private String address;

    @ApiModelProperty(value = "账号状态：0-无效，1-生效")
    private Integer state;

    @ApiModelProperty(value = "身份标识：0-管理员，1-用户，2-律师")
    private Integer flag;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "性别：0-男；1-女")
    private Integer sex;

    @ApiModelProperty(value = "职业")
    private String occupation;


}
